import { ITableColProp, ITableConfig } from '@/base-ui/table/src/types'

export const propList: ITableColProp[] = [
  {
    prop: 'name',
    label: '商品名称',
    minWidth: '60'
  },
  {
    prop: 'oldPrice',
    label: '原价',
    minWidth: '60',
    slotName: 'oldPrice'
  },
  {
    prop: 'newPrice',
    label: '现价',
    minWidth: '60',
    slotName: 'newPrice'
  },
  {
    prop: 'imgUrl',
    label: '商品图片',
    minWidth: '60',
    slotName: 'image'
  },
  {
    prop: 'inventoryCount',
    label: '库存盘点',
    minWidth: '60'
  },
  {
    prop: 'address',
    label: '库存地点',
    minWidth: '60'
  },
  {
    prop: 'createAt',
    label: '创建时间',
    minWidth: '120',
    slotName: 'createAt'
  },
  {
    prop: 'updateAt',
    label: '更新时间',
    minWidth: '120',
    slotName: 'updateAt'
  },
  {
    label: '操作',
    minWidth: '80',
    slotName: 'handle'
  }
]

export const contentConfig: ITableConfig = {
  title: '商品列表',
  isShowIndex: true,
  isShowSelection: true,
  propList: propList
}
